package com.hotels.management.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.hotels.management.base.domain.BaseEntity;

@Entity
@Table(name = "FURNITURE")
public class Furniture extends BaseEntity {

	private static final long serialVersionUID = 2473834446231605795L;

	private String name;
	private FurnitureType type;
	private Boolean payable;
	private Boolean movable;

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne
	@JoinColumn(name = "FURNITURE_TYPE_ID")
	public FurnitureType getType() {
		return type;
	}

	public void setType(FurnitureType type) {
		this.type = type;
	}

	@Column(name = "PAYABLE")
	public Boolean getPayable() {
		return payable;
	}

	public void setPayable(Boolean payable) {
		this.payable = payable;
	}

	@Column(name = "MOVALE")
	public Boolean getMovable() {
		return movable;
	}

	public void setMovable(Boolean movable) {
		this.movable = movable;
	}

}
